package com.companyname.projecttemplate.mapping;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import com.base.core.head.ao.WsMessageAO;
import com.gitee.magic.framework.head.vo.BaseVO;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;

/**
 * @author start
 */
@Tag(name = "ApiMapping")
public interface ApiMapping {

	/**
	 * wsConnection
	 * @param userId
	 * @return
	 */
    @Operation(summary="Ws建立连接")
	@PostMapping("/v1/ws/connection/{userId}")
    BaseVO wsConnection(@PathVariable @Parameter(description = "用户Id")Long userId);

	/**
	 * wsHandleMessage
	 * @param ao
	 * @return
	 */
    @Operation(summary="Ws处理消息")
	@PostMapping("/v1/ws/handleMessage")
    BaseVO wsHandleMessage(@RequestBody WsMessageAO<String> ao);
    
	
}
